import api from "./http";
export default {
  // 测试接口
  test() {
    return api({
      url: ''
    })
  },
  // 登录前安全验证
  adminLSA(ticket, randstr) {
    return api({
      url: '/adminLSA',
      method: 'post',
      data: {
        "ticket": ticket,
        "randstr": randstr
      }
    })
  },
  // 管理员登录
  adminLogin(user) {
    return api({
      url: '/adminLogin',
      method: 'post',
      data: {
        ...user
      }
    })
  },

  //获取所有用户信息
  getAlluser() {
    return api({
      url: '/getAlluser',
    })
  },

  //购入剧本
  buyScript(newScript) {
    return api({
      url: '/buyScript',
      method: 'post',
      data: {
        ...newScript
      }
    })
  },
//所有订单
allOrder(){
  return api({
    url:'/getAllOrder',
    method:'get'
    
  })
},
//查询订单
query(orderNumber){
  return api({
    url:'/getOrderByOrderNumber',
    method:'post',
    data:{
      OrderNumber:orderNumber
    }
  })
},
//未完成的订单
//创建新订单
setUp(form){
  return api({
    url:'/launchGroup',
    method:'post',
    data:{form}
    }
  )
}
}